﻿<%@ Page Language="C#" AutoEventWireup="true" Culture="en-GB" CodeFile="TDSDisplay.aspx.cs"
    Inherits="Main_Reports_ServiceInvoice_TDSDisplay" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>TDS Display</title>
    <link href="../../../Styles/accounts.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
       function printgrid() {
           var dd = document.getElementById("hyperPrint").style.visibility = "hidden";
            window.print();
            this.close();
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div style="margin-top: 20px; margin-left: 3%;">
        <asp:HyperLink ID="hyperPrint" runat="server" Text="Print" NavigateUrl="#" onclick="printgrid();"></asp:HyperLink>
    </div>
    <div style="width: 94%; margin-left: 3%; margin-right: 3%; margin-top: 50px;">
        <center><b>
            <asp:Label ID="lblcompname" runat="server"></asp:Label></b></center><br />
        <br />
        <asp:GridView ID="grdTDSDisplay" runat="server" CssClass="gridview" AutoGenerateColumns="false"
            AlternatingRowStyle-CssClass="gridview_alternate" OnRowDataBound="grdTDSDisplay_RowDataBound">
            <EmptyDataTemplate>
                <span style="font-weight: bold; color: Red;">No Record Found !</span>
            </EmptyDataTemplate>
            <Columns>
                <asp:BoundField HeaderText="&nbsp;Particulars&nbsp;" DataField="particulars" />
                <asp:BoundField HeaderText="&nbsp;TDS Amount&nbsp;" DataField="TDS Amount" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:0.00}" />
                <asp:BoundField HeaderText="&nbsp;Date&nbsp;" DataField="TransactionDate" DataFormatString="{0:dd/MM/yyyy}" />   
                <asp:BoundField HeaderText="&nbsp;Received Date&nbsp;" DataField="ReceivedDate" DataFormatString="{0:dd/MM/yyyy}" />
                <asp:BoundField HeaderText="&nbsp;STRate&nbsp;" DataField="STRate" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:0.00}"  />
                <asp:BoundField HeaderText="&nbsp;PECess&nbsp;" DataField="Cess1Rate" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:0.00}"  />
                <asp:BoundField HeaderText="&nbsp;HECess&nbsp;" DataField="Cess2Rate" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:0.00}"  />
                <asp:BoundField HeaderText="&nbsp;STAmt&nbsp;" DataField="ServiceAmt" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:0.00}"  />
                <asp:BoundField HeaderText="&nbsp;PECessAmt&nbsp;" DataField="Cess1Amt" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:0.00}"  />
                <asp:BoundField HeaderText="&nbsp;HECessAmt&nbsp;" DataField="Cess2Amt" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:0.00}"  />
                <asp:BoundField HeaderText="&nbsp;Certificate Number&nbsp;" DataField="CertificateNumber" />
                <asp:BoundField HeaderText="&nbsp;Remarks&nbsp;" DataField="remarks" />
            </Columns>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
